<html>
<head><meta charset="utf-8"><title>tls interface · wg-async-foundations · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/index.html">wg-async-foundations</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html">tls interface</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="180442448"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180442448" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180442448">(Nov 11 2019 at 17:25)</a>:</h4>
<p>The temporary TLS interface for smuggling the context around generated futures causes stack traces to get a bit "polluted" with a bunch of extra frames. It'd be nice to change that over to an unsafe API that returns the RAII guards directly rather than using closures. Does that seem plausible? Dunno if removing the TLS requirement entirely is close enough that this wouldn't be worth it</p>



<a name="180442817"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180442817" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> csmoe <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180442817">(Nov 11 2019 at 17:29)</a>:</h4>
<p>(<span class="user-mention" data-user-id="243558">@Steven Fackler</span>  sorry for a stupid question, what is <code>tls</code> here? is it the crypto tls?)</p>



<a name="180442863"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180442863" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180442863">(Nov 11 2019 at 17:29)</a>:</h4>
<p>thread local storage - the unstable APIs down here: <a href="https://doc.rust-lang.org/src/std/future.rs.html#50-122" target="_blank" title="https://doc.rust-lang.org/src/std/future.rs.html#50-122">https://doc.rust-lang.org/src/std/future.rs.html#50-122</a></p>



<a name="180469419"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180469419" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180469419">(Nov 11 2019 at 23:40)</a>:</h4>
<p><span class="user-mention" data-user-id="243558">@Steven Fackler</span> we were hoping to remove the RLS hack altogether</p>



<a name="180469433"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180469433" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180469433">(Nov 11 2019 at 23:40)</a>:</h4>
<p>ah, I see you anticipated that</p>



<a name="180469442"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180469442" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180469442">(Nov 11 2019 at 23:41)</a>:</h4>
<p>I'm not sure how close it is tbh, seems like it could be fairly easy</p>



<a name="180471355"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180471355" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180471355">(Nov 12 2019 at 00:21)</a>:</h4>
<p>maybe I'll just throw together a PR making the change and see how people feel</p>



<a name="180525588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180525588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180525588">(Nov 12 2019 at 15:09)</a>:</h4>
<p>I think if it's easy to land such a PR, seems ok to do as a stopgap</p>



<a name="180691368"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/tls%20interface/near/180691368" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Steven Fackler <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/tls.20interface.html#180691368">(Nov 14 2019 at 01:23)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/66398" target="_blank" title="https://github.com/rust-lang/rust/pull/66398">https://github.com/rust-lang/rust/pull/66398</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>